import { makeAutoObservable } from "mobx";

class AuthStore {
  token = "";

  constructor() {
    makeAutoObservable(this, {}, { autoBind: true });
  }

  login() {
    this.token = "dfsjiosjfsnd";
  }

  logout() {
    this.token = "";
  }

  get isLogin() {
    return this.token.length > 0;
  }
}

export default AuthStore;
